#pragma once
#include "windows.h"

static bool xx_mem_unprotect(void* address, size_t size) {
    DWORD old_flags;
    BOOL result = VirtualProtect(address,
        size,
        PAGE_EXECUTE_READWRITE,
        &old_flags);
    return result == TRUE;
}
